<template name="task">
  <li class="{{#if checked}}checked{{/if}} {{#if private}}private{{/if}}">
    <button class="delete">&times;</button>

    <input type="checkbox" checked="{{checked}}" class="toggle-checked" />
    <input type="hidden" value="{{_id}}" />
	{{#if isOwner}}
      <button class="toggle-private">
        {{#if private}}
          Private
        {{else}}
          Public
        {{/if}}
      </button>
    {{/if}}

	<span class="text"><strong>{{username}}</strong> - {{text}}</span>
	<span><a href="{{pathFor 'taskPage'}}"> show detail</a></span>
  </li>
</template>
